#ifndef __MYDOCKWIDGET_H__
#define __MYDOCKWIDGET_H__

#include <QDockWidget>
#include <QGraphicsView>
#include <QResizeEvent>

class MyDockWidget : public QDockWidget
{
public:
    explicit MyDockWidget(QWidget *parent = nullptr);

    void resizeEvent(QResizeEvent *event);
    void setGraphicsScene(QGraphicsScene* pScene);

    void fitInView();

private:
    QGraphicsView* m_graphicsView;
};

#endif // __MYDOCKWIDGET_H__
